package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderChannel;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderChannelExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderChannelMapper {
    long countByExample(DirectMailGoodsOrderChannelExample example);

    int deleteByExample(DirectMailGoodsOrderChannelExample example);

    int deleteByPrimaryKey(Integer orderId);

    int insert(DirectMailGoodsOrderChannel record);

    int insertSelective(@Param("record") DirectMailGoodsOrderChannel record, @Param("selective") DirectMailGoodsOrderChannel.Column ... selective);

    DirectMailGoodsOrderChannel selectOneByExample(DirectMailGoodsOrderChannelExample example);

    List<DirectMailGoodsOrderChannel> selectByExample(DirectMailGoodsOrderChannelExample example);

    DirectMailGoodsOrderChannel selectByPrimaryKey(Integer orderId);

    DirectMailGoodsOrderChannel selectByPrimaryKeyWithLogicalDelete(@Param("orderId") Integer orderId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrderChannel record, @Param("example") DirectMailGoodsOrderChannelExample example, @Param("selective") DirectMailGoodsOrderChannel.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrderChannel record, @Param("example") DirectMailGoodsOrderChannelExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrderChannel record, @Param("selective") DirectMailGoodsOrderChannel.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrderChannel record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrderChannel> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrderChannel> list, @Param("selective") DirectMailGoodsOrderChannel.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderChannelExample example);

    int logicalDeleteByPrimaryKey(Integer orderId);
}